package com.maven.zh.service;

import java.util.List;

import com.maven.zh.bean.Datas;
import com.maven.zh.bean.Manager;
import com.maven.zh.bean.Page;
import com.maven.zh.bean.Permission;

public interface ManagerService {

	Manager queryManager4Login(Manager manager);

	List<Permission> queryPermissionsByManager(Manager loginManager);

	void deleteBatManagers(Datas ds);

	int deleteManagerById(Integer id);

	Page<Manager> queryPage(Integer pageno, Integer pagesize, String qname);

	Manager queryManagerById(Integer id);

	int updateManager(Manager manager);

	void insertManager(Manager manager);

	List<Integer> queryRoleIdsByManagerId(Integer id);

	void assignRoles(Integer managerid, Datas ds);

	void cancleAssignRoles(Integer managerid, Datas ds);

}
